package com.alibaba.discoveryconsumerfeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YL
 * @date 11:52 2021/10/2
 */
@RestController
public class FeignClientController {

    @Autowired
    private Feign feign;

    @GetMapping("/echo/{name}")
    public String echo(@PathVariable String name){
        return feign.echo(name);
    }
}
